home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 36
/
Amiga Format CD36 (1999-01-22)(Future Publishing)(GB)[!][issue 1999-02].iso
/
-seriously_amiga-
/
comms
/
www
/
aweb2miami
/
install-aweb2miami
< prev
next >
Wrap
Text File
|
1998-11-25
|
4KB
|
155 lines
; $VER: Install AWeb2Miami 1.0 (17.11.98)
; Installer script by WHMP
; Description: Installer script for AWeb2Miami ARexx scripts
(set v39 (>= (/ (getversion "exec.library" (resident)) 65536) 39))
(set awv 3)
(set awr 1)
(set #needInst43 "You must use Installer version 43 or greater. Use the Installer program from your AWeb-II disk.")
(if (< (/ @installer-version 65536) 43)
(abort #needInst43)
)
(set #installing "Installing ")
; offer to back up a file or drawer
(procedure bumprev #bumpfile #bumptxt
(if (exists #bumpfile)
(
(set bump 1)
(while (exists (cat #bumpfile "_old" bump) ) (set bump (+ bump 1)) )
(if
(askbool
(default 1)
(prompt (cat "\n\n\nBackup " #bumpfile " as "
#bumpfile "_old" bump " ?\n\n\n "
#bumptxt ) )
(help
(cat "\n\n\n\"" #bumpfile "\" is about to be over written.\n"
"\nYou are being given the chance to back it up."
" If you are unsure select yes... just in case ;-D ."
)
)
)
; (rename #bumpfile (cat #bumpfile "_old" bump))
( (set bdest (cat #bumpfile "_old" bump))
(copyfiles
(source #bumpfile)
(dest bdest)
(all)
)
)
)
)
)
)
;add a line to a settings file
(procedure addpref #preffile #preftext
(foreach "ENVARC:AWeb3" "~(program|browser|gui|network|window|settings)"
(
(if (= @each-type 2)
(run (cat "echo >>ENVARC:AWeb3/" @each-name "/" #preffile " \"" #preftext "\"") )
)
)
)
(run (cat "echo >>ENVARC:AWeb3/" #preffile " \"" #preftext "\"") )
)
(set #no-aweb-ii
(cat "You must have completed the AWeb-II 3.1 installation before "
"you can install the %s plug-in. No AWeb3: assign has been found."
)
)
(if (not (exists "AWeb3:" (noreq)))
(abort (#no-aweb-ii "Utilities"))
)
(set @default-dest "AWeb3:")
(bumprev "envarc:aweb3"
(cat "Your previously SAVED AWeb 3.1 configuration"
" is in this directory.")
) ; backup any previous AWeb3 prefs
(set menbut
(askoptions
(prompt
"\n\nInstall Online.awebrx, Offline.awebrx, and OnlineStatus.awebrx as\n"
)
(help "\nThe GUI buttons appear on the main AWeb window\n"
"The ARexx menu is attached to the main AWeb window\n"
"Automatic TCP Start and Stop causes Miami to start when a link is selected in AWeb and stop when AWeb quits\n"
"GUI buttons are only available with \n"
"settings-GUI-options-show user buttons on\n")
(choices "GUI Buttons"
"ARexx Menu Entrys"
"Automatic TCP Start and Stop"
"" )
(default 7)
)
)
(if(bitand 1 menbut)
(
(addpref "gui" "UBUT OnlineRx AWebPath:Plugins/Online.awebrx")
(addpref "gui" "UBUT OfflineRx AWebPath:Plugins/Offline.awebrx")
(addpref "gui" "UBUT OnlineStatusRx AWebPath:Plugins/OnlineStatus.awebrx")
)
)
(if(bitand 2 menbut)
(
(addpref "gui" "AREX 0;AWebPath:Plugins/Online.awebrx;Online")
(addpref "gui" "AREX 0;AWebPath:Plugins/Offline.awebrx;Offline")
(addpref "gui" "AREX 0;AWebPath:Plugins/OnlineStatus.awebrx;OnlineStatus")
)
)
(if(bitand 4 menbut)
(
(addpref "network" "TCPC Rx AwebPath:Plugins/Online.awebrx")
(addpref "network" "TCEC Rx AwebPath:Plugins/Offline.awebrx")
)
)
(copyfiles
(source "Online.awebrx")
(dest (tackon @default-dest "Plugins"))
(prompt #installing "Online.awebrx Script")
)
(copyfiles
(source "Offline.awebrx")
(dest (tackon @default-dest "Plugins"))
(prompt #installing "Offline.awbrx Script")
)
(copyfiles
(source "OnlineStatus.awebrx")
(dest (tackon @default-dest "Plugins"))
(prompt #installing "OnlineStatus.awebrx Script")
)
(if (= @user-level 2)
( bumprev "env:aweb3"
(cat "Your previous ACTIVE AWeb 3.1 configuration"
" is in this directory.")
) ;backup any active prefs
)
(delete "env:aweb3/#?" (all))
(copyfiles
(source "ENVARC:AWeb3")
(dest "ENV:AWeb3")
(all)
)
(complete 100)
(set @default-dest "AWeb3:plugins")
(exit "\n\n" @app-name
" is now installed.\n\n"
"If this is an update installation be sure to check your GUI "
" settings for duplicate entries."
"\n"
)